package org.ttitfly.workflow.engine.persistence.jdbc;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * connection回调接口
 * 
 * @author 潘海春
 * @version 2009-3-19
 */
public interface ConnectionCallback {

	/**
	 * 执行jdbc操作
	 * 
	 * @param connection
	 * @return
	 * @throws SQLException
	 */
	Object doInConnection(Connection connection) throws SQLException;

}
